package meatslope2.gameengine.primatives;

//TODO: do we need hit wtfux?
public class HitInfo 
{
	private boolean hit = false;
	public void setHit(boolean hit)
	{
		this.hit = hit;
	}
	
	public boolean isHit()
	{
		return this.hit;
	}
	
	
	private Vector2 hitPoint = new Vector2();
	public void setHitPoint(Vector2 hitPoint)
	{
		this.hitPoint = hitPoint;
	}
	
	public Vector2 getHitPoint()
	{
		return this.hitPoint;
	}
	
	private Vector2 hitNormal = new Vector2();
	public void setHitNormal(Vector2 hitNormal)
	{
		this.hitNormal = hitNormal;
	}
	
	public Vector2 getHitNormal()
	{
		return this.hitNormal;
	}
	
	public void reset()
	{
		this.hit = false;
		this.hitPoint.zero();
		this.hitNormal.zero();
	}

	public void set(HitInfo otherHitInfo) 
	{
		this.hit = otherHitInfo.isHit();
		this.hitPoint.set(otherHitInfo.getHitPoint());
		this.hitNormal.set(otherHitInfo.getHitNormal());
	}
}
